<?php

use app\helper\tools\Str;

if (! function_exists('str_random')) {
    function str_random($length) {
        return Str::random($length);
    }
}

if (! function_exists('dd')) {
    function dd($args) {
        dump($args);
        die();
    }
}

if (! function_exists('is_win')) {
    function is_win() {
        return strtoupper(substr(PHP_OS,0,3)) === 'WIN' ? true : false;
    }
}
